package com.spark.zhou.demo.sparksql;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.sql.SQLContext;

/**
 * @Description:
 * @Author: ZhOu
 * @Date: 2018/5/28
 */
public class SparkSqlDemo {
    public static void main(String[] args) {
        SparkConf sparkConf = new SparkConf().setMaster("local").setAppName("AppRecord");
        JavaSparkContext sc = new JavaSparkContext(sparkConf);

        SQLContext sqlContext = new SQLContext(sc);

        JavaRDD<String> javaRDD = sc.textFile("\t");
        JavaRDD<String[]> javaRDD1 = javaRDD.map(str -> str.split("."));

    }
}
